import pandas as pd
list=[[110,120,105],[95,110,108],[98,80,100],[112,106,97]]
index=['王蒙','李珊','赵胜','刘文']#定义行
coulmns=['语文','数学','英语']#定义列
#创建字典
df=pd.DataFrame(list,index,coulmns)
print(df)
print(df['语文'])
print(df[['语文','数学']])
print(df[['语文','英语']]['王蒙':'赵胜'])
print(df[['语文','数学','英语']]['李珊':])
